# -*- encoding:utf-8 -*-
# @Time: 2022/10/31 21:21
# @Author : moran
# @Email: moran@maqu.com
# @File: celery_main.py
# @Software: PyCharm
from celery import Celery
import os

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'drfstudy27.settings')

app = Celery('drfstudy27')  # 创建celery应用

app.config_from_object('celery_tasks.celery_config')  # 引入celery配置，任务队列

app.autodiscover_tasks(['celery_tasks.email'],)  # 导入任务

